﻿

function station(stationName, shipSize) {
    var s = new ship(stationName, shipSize);
    s.loadBlocks([
        { x: 0, y: 1, c: 'green' },
        { x: 1, y: 0, c: 'green' },
        { x: -1, y: 0, c: 'green' },
        { x: 0, y: -1, c: 'green' },
        { x: 0, y: 2, c: 'green' },
        { x: 2, y: 0, c: 'green' },
        { x: -2, y: 0, c: 'green' },
        { x: 0, y: -2, c: 'green' },
        { x: 1, y: 1, c: 'green' },
        { x: -1, y: 1, c: 'green' },
        { x: -1, y: -1, c: 'green' },
        { x: 1, y: -1, c: 'green' },
        { x: 2, y: 1 },
        { x: 2, y: 2 },
        { x: 3, y: 1 },
        { x: 0, y: 3 },
        { x: -2, y: 1 },
        { x: -2, y: 2 },
        { x: -3, y: 1 },
        { x: 2, y: -1 },
        { x: 2, y: -2 },
        { x: 3, y: -1 },
        { x: 0, y: -3 },
        { x: -2, y: -1 },
        { x: -2, y: -2 },
        { x: -3, y: -1 },
    ]);
    return s;
}

function starShip(starShipName, shipSize) {
    var s = new ship(starShipName, shipSize);
    s.loadBlocks([
        { x: 1,  y: 0,  },
        { x: 0,  y: 1,  },
        { x: -1, y: 0,  },
        { x: 0,  y: -1, },
        { x: 2,  y: 0,  c: "blue" },
        { x: 1,  y: 1,  c: "blue" },
        { x: 1,  y: -1, c: "blue" },
        { x: -1, y: -1, c: "blue" },
        { x: 0,  y: -2, c: "blue" },
        { x: -1, y: 1,  c: "blue" },
        { x: -2, y: 0,  c: "blue" },
        { x: 0,  y: 2,  c: "blue" },
        { x: 2,  y: 1,  },
        { x: 1,  y: 2,  },
        { x: -1, y: 2,  },
        { x: -2, y: 1,  },
        { x: -2, y: -1, },
        { x: -1, y: -2, },
        { x: 2,  y: -1, },
        { x: 1,  y: -2, },
        { x: 0,  y: -3, },
        { x: 0,  y: 3,  },
        { x: 0,  y: 4,  },
        { x: 0,  y: 5,  },
        { x: 0,  y: 6,  },
        { x: 1,  y: 6,  },
        { x: -1, y: 6,  },
        { x: -1, y: 7,  },
        { x: -2, y: 7,  },
        { x: 1,  y: 7,  },
        { x: 2,  y: 7,  },
        { x: 3,  y: 7,  },
        { x: -3, y: 7,  },
        { x: 4,  y: 7,  },
        { x: 3,  y: 8,  c: "green" },
        { x: 4,  y: 8,  },
        { x: 5,  y: 7,  },
        { x: 5,  y: 8,  c: "green" },
        { x: 6,  y: 7,  },
        { x: 6,  y: 8,  },
        { x: -3, y: 8,  c: "green" },
        { x: -4, y: 7,  },
        { x: -4, y: 8,  },
        { x: -5, y: 7,  },
        { x: -5, y: 8,  c: "green" },
        { x: -6, y: 7,  },
        { x: -6, y: 8,  },
        { x: 7,  y: 7,  },
        { x: 6,  y: 6,  },
        { x: 7,  y: 6,  },
        { x: 6,  y: 5,  },
        { x: 7,  y: 5,  },
        { x: 6,  y: 4,  c: "yellow" },
        { x: 7,  y: 4,  c: "yellow" },
        { x: 7,  y: 8,  },
        { x: 6,  y: 9,  },
        { x: 7,  y: 9,  },
        { x: 6,  y: 10, },
        { x: 7,  y: 10, },
        { x: 6,  y: 11, c: "blue" },
        { x: 7,  y: 11, c: "blue" },
        { x: -7, y: 7,  },
        { x: -6, y: 6,  },
        { x: -6, y: 9,  },
        { x: -7, y: 8,  },
        { x: -7, y: 6,  },
        { x: -6, y: 5,  },
        { x: -7, y: 5,  },
        { x: -6, y: 4,  c: "yellow" },
        { x: -7, y: 4,  c: "yellow" },
        { x: -6, y: 10, },
        { x: -7, y: 9,  },
        { x: -6, y: 11, c: "blue" },
        { x: -7, y: 10, },
        { x: -7, y: 11, c: "blue" }]);
    return s;
}

